package com.clw.classfile.attribute.info;

import com.clw.classfile.BytesReader;

/**
 * Created by chengliwei on 2018/11/16.
 */
public class InnerClasses extends AttributeInfo {

    // 内部类与宿主类的关系
    private short numberOfClasses;
    private InnerClassesInfo[] innerClasses;

    public InnerClasses(BytesReader reader) {
        super(reader.readInt());
    }

    private class InnerClassesInfo{
        private short innerClassInfoIndex; // 指向CONSTANT_Class_info的索引，代表内部类的符号引用
        private short outerClassInfoIndex; // 指向CONSTANT_Class_info的索引，代表宿主类的符号引用
        private short innerNameIndex; // 指向CONSTANT_Utf8_info的索引，代表这个内部类的名称，匿名内部类的这项值为0
        private short innerClassAccessFlags;
    }
}
